<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Mall</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" th:href="@{/css/style.css}" type="text/css">
</head>
<body>
<table>
    <tr>
        <th>名称</th>
        <th>价格</th>
        <th>库存</th>
        <th>描述</th>
    </tr>
    <tr th:each="list,stat:${list}">
        <td th:text="${list.name}"></td>
        <td th:text="${list.price}"></td>
        <td th:text="${list.num}"></td>
        <td th:text="${list.remark}"></td>
        <td>
            <button>购买</button>
        </td>
    </tr>
</table>
</body>
</html>